package com.trs.publish.domain;

import java.util.Date;
import java.util.List;

import org.hibernate.validator.constraints.NotEmpty;

public class Role extends BasicJavaBean{
    private Long id;
    
    @NotEmpty(message="角色编码不能为空")
    private String rolename;

    @NotEmpty(message="角色描述不能为空")
    private String memo;

    private Date createtime;
    
    private List<Long> power;
    
	public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getRolename() {
        return rolename;
    }

    public void setRolename(String rolename) {
        this.rolename = rolename == null ? null : rolename.trim();
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo == null ? null : memo.trim();
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

	public List<Long> getPower() {
		return power;
	}

	public void setPower(List<Long> power) {
		this.power = power;
	}
    
    
	
}